package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.model.domain.User;
import com.tanhua.model.domain.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * @author ck
 * @date 2021/11/11 11:18
 */
public interface UserInfoApi {

    public void save(UserInfo userInfoVo);

    public void update(UserInfo userInfoVo);

    //根据id查询
    public UserInfo findById(Long id);


    public void updateWithPhone(User user);

    /**
     * 批量查询用户详情
     * @param ids
     * @param userInfo
     * @return
     */
    public  Map<Long, UserInfo> findByIds(List<Long> ids, UserInfo userInfo);

    //分页查询
    public IPage findAll(Integer page,Integer pagesize);

    public Map<Long, UserInfo> findList(List<Long> ids);
}
